from PIL import Image

img = Image.open('Fan.jpeg')
width, height = img.size

img.thumbnail((width/4, height/4))
img.save('Fan_small.jpeg', 'jpeg')

